package com.lobo.blog.service;

import com.github.pagehelper.PageInfo;
import com.lobo.blog.entity.Blog;

import java.util.List;

/**
 * @authoer:MacieSerenity
 * @createDate: 2022/10/4
 * @description:
 */
public interface BlogService {

    Blog getBlogAndConvertoHtml(int blogId);

    Blog getBlogById(int blogId);

    PageInfo<Blog> getBlogs(int pageNum);

    List<Blog> getRecentNewBlogBySize(int size);

    PageInfo<Blog> getBlogsByCondition(int pageNum, Blog blog);

    PageInfo<Blog> getBlogsByTag(int pageNum,Integer tagId);

    PageInfo<Blog> findBlogsByQuery(int pageNum, String query);
}
